package experiment08;

public class experiment08 {
    public static void main(String[] args) {

        double numerator=2;
        double denominator=1;
        double s=0;

        for (int i = 0; i < 20; i++) {
            s+=numerator/denominator;
            numerator=numerator+denominator;
            denominator=numerator-denominator;

        }
        System.out.println(s);
    }
}